<template>
  <div class="mb-2 flex items-center text-sm">
    <NstdRadioGroup v-model="radio1" class="ml-4" :options="options">
    </NstdRadioGroup>
  </div>
  <div class="my-2 flex items-center text-sm">
    <NstdRadioGroup v-model="radio2" class="ml-4" :options="options1">
    </NstdRadioGroup>
  </div>
  <div class="my-4 flex items-center text-sm">
    <NstdRadioGroup v-model="radio3" class="ml-4" :options="options2">
    </NstdRadioGroup>
  </div>
  <div class="mb-2 flex items-center text-sm">
    <NstdRadioGroup v-model="radio3" disabled class="ml-4" :options="options2">
    </NstdRadioGroup>
  </div>
</template>

<script lang="ts" setup>
import { ref } from 'vue'

const radio1 = ref('1')
const radio2 = ref('1')
const radio3 = ref('1')
const options2 = [
  {
    type: 'radio',
    label: '1',
    value: 'Option 1',
    size: 'small'
  },
  {
    type: 'radio',
    label: '2',
    value: 'Option 2',
    size: 'small'
  }
]
const options1 = [
  {
    type: 'radio',
    label: '1',
    value: 'Option 1'
  },
  {
    type: 'radio',
    label: '2',
    value: 'Option 2'
  }
]
  const options = [
    {
      type: 'radio',
      label: '1',
      value: 'Option 1',
      size: 'large'
    },
    {
      type: 'radio',
      label: '2',
      value: 'Option 2',
      size: 'large'
    }
  ]
</script>
